
final class IntExtra(n: Int) {
  def times(op: Int => Unit) = (0 until n).foreach(op)
}
implicit def int2IntExtra(x: Int) = new IntExtra(x)

3 times { println(_) }
